import React from "react";
import { View, Text } from "@tarojs/components";
import "./card_scroll.scss";
import { ScrollView } from "@tarojs/components";

const CardScroll = ({ title="测试标题", right, children, customStyle,titleStyle }) => {
  return (
    <View className="card-scroll" style={customStyle}>
      <View className="title" style={titleStyle} >
        <Text>{title}</Text>
      </View>
      <View className="right">{right}</View>
      <ScrollView className="scroll-content" scrollX enableFlex>
        {children}
      </ScrollView>
    </View>
  );
};

export default CardScroll;
